package com.zqwh.xtool.greendao.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class Tool {
    @Id
    private Long toolId;
    private String name;
    private String image;
    private String spec;
    private String description;
    private Boolean hasRFID = true;
    private Long categoryId;
    private String categoryName;
    private Boolean valid = true;
    private Date createTime;
    private Date updateTime;
    @Generated(hash = 1975107097)
    public Tool(Long toolId, String name, String image, String spec,
            String description, Boolean hasRFID, Long categoryId,
            String categoryName, Boolean valid, Date createTime, Date updateTime) {
        this.toolId = toolId;
        this.name = name;
        this.image = image;
        this.spec = spec;
        this.description = description;
        this.hasRFID = hasRFID;
        this.categoryId = categoryId;
        this.categoryName = categoryName;
        this.valid = valid;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
    @Generated(hash = 1059748735)
    public Tool() {
    }
    public Long getToolId() {
        return this.toolId;
    }
    public void setToolId(Long toolId) {
        this.toolId = toolId;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getImage() {
        return this.image;
    }
    public void setImage(String image) {
        this.image = image;
    }
    public String getSpec() {
        return this.spec;
    }
    public void setSpec(String spec) {
        this.spec = spec;
    }
    public String getDescription() {
        return this.description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    public Boolean getHasRFID() {
        return this.hasRFID;
    }
    public void setHasRFID(Boolean hasRFID) {
        this.hasRFID = hasRFID;
    }
    public Long getCategoryId() {
        return this.categoryId;
    }
    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }
    public String getCategoryName() {
        return this.categoryName;
    }
    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }
    public Boolean getValid() {
        return this.valid;
    }
    public void setValid(Boolean valid) {
        this.valid = valid;
    }
    public Date getCreateTime() {
        return this.createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Date getUpdateTime() {
        return this.updateTime;
    }
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
